<?php

namespace Usap\Conf\Common;

/**
 * 设备配置
 */
class device
{


    /*设备运行状态*/
    public function getRunStatusConf()
    {
        return array('1' => '在线', '0' => '离线');
    }



    /**
     * 巡检周期
     */
    public function getCheckCycle()
    {
        $cfg = [
            '5' => '5',
            '1' => '30',
            '2' => '60',
            '3' => '120',
            '4' => '180',
        ];
        return $cfg;
    }


    /**
     * device_type
     * 类型对于代码
     */
    public function getDeviceType($device_type_id)
    {
        $cfg = [
            '6' => '000000A6', //烟感
            '7' => '000000B6',//温感
            '8' => '000000B5',//气感
        ];
        return $cfg[$device_type_id];
    }
}